import request from '@/utils/request'

// 查询充值历史记录列表
export function listChargehistory(query) {
  return request({
    url: '/member/chargehistory/list',
    method: 'get',
    params: query
  })
}

// 查询充值历史记录详细
export function getChargehistory(id) {
  return request({
    url: '/member/chargehistory/' + id,
    method: 'get'
  })
}

// 新增充值历史记录
export function addChargehistory(data) {
  return request({
    url: '/member/chargehistory',
    method: 'post',
    data: data
  })
}

// 修改充值历史记录
export function updateChargehistory(data) {
  return request({
    url: '/member/chargehistory',
    method: 'put',
    data: data
  })
}

// 删除充值历史记录
export function delChargehistory(id) {
  return request({
    url: '/member/chargehistory/' + id,
    method: 'delete'
  })
}
